package implementor;


import daoInterfaces.SalesPersonDao;
import dbhandelling.Crude;
import dto.SalesPerson;

public class SalesPersonImp extends Crude implements SalesPersonDao
{

	@Override
	public void add(SalesPerson att) {
		String[] values=new String[3];
		values[0]=att.getSalesPersonId()+"";
		values[1]=att.getSalesPersonName();
		values[2]=att.getStatus()+"";
		insert("SalesPerson", values);

		
	}

	@Override
	public void update(SalesPerson att) {
		
		
	}

	@Override
	public void delete(SalesPerson att) {
		this.delete("SalesPerson", "salesPersonId", att.getSalesPersonId()+"");
		
	}

	@Override
	public SalesPerson retrieve(String conditionField, String conditionValue) {
	
		return null;
	}

	@Override
	public SalesPerson[] retrieveArray(String conditionField, String conditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public SalesPerson[] retrieveAll() {
		// TODO Auto-generated method stub
		return null;
	}

	

}
